package com.yzh;

/**
 * @author 于振晗
 * @title: Student
 * @description: TODO 学生类
 * @date 2020年08月25日
 * @path com.yzh
 */
public class Student {
    String name;
    String sex;
    int age;
    static String roomClass;

    public Student(String name, String sex, int age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public static void main(String[] args) {
        Student.roomClass = "高二三班";
        Student student1 = new Student("小三", "男", 19);
        System.out.println(student1.name);
        System.out.println(Student.roomClass);
        Student student2 = new Student("小四", "女", 19);
        System.out.println(student2.name);
        System.out.println(Student.roomClass);

    }
}
